package com.hyt.it.ogt.data.mapper.pj;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.data.model.dto.ExamExpertSettingParam;
import com.hyt.it.ogt.data.model.entity.pj.Task;
import com.hyt.it.ogt.data.model.vo.pj.TaskNumberVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评卷任务表 Mapper 接口
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface PjDataTaskMapper extends BaseMapper<Task> {


    List<Task> getStudentSubjectTaskByAdmissionNums(
    		@Param("projectId") String projectId, 
    		@Param("subjectId") String subjectId, 
    		@Param("admissionNums") List<String> admissionNums);
    
    List<Task> getStudentSubjectTask(
    		@Param("projectId") String projectId, 
    		@Param("subjectId") String subjectId, 
    		@Param("admissionNum") String admissionNum);
    
    
    /**
     * 查询专家已分配评卷任务数
     *
     * @param projectId
     * @return
     */
    List<TaskNumberVo> queryTaskNumberVo(@Param("projectId") String projectId);
    
    /**
     * 查询未评卷任务
     *
     * @param examExpertSettingParam
     * @return
     */
    List<Task> queryTaskByExamExpertSetting(ExamExpertSettingParam examExpertSettingParam);

}
